<?php
$sid = $_GET['sid'];
require_once 'db_conn.php';
$sql = "SELECT * FROM t_message WHERE id=$sid LIMIT 1";

$result = $conn->query($sql);
$rows = $result->fetch_array(MYSQLI_ASSOC);


$data = array();
$data['status'] = 0;
$data['info'] = $rows;
echo json_encode($data);
?>